// MenuBuilder.java
package sonet.textui.publication;
import ist.po.ui.Command;
import ist.po.ui.Menu;
import sonet.textui.*;

public class MenuBuilder {
	public static void menuFor(BrowsingState state) {
		Menu menu = new Menu(MenuEntry.TITLE, new Command<?>[] {
				new ShowPublications(state),
				new ShowPublication(state),
				new RegisterPublication(state),
				new RatePublication(state),
				new CommentPublication(state),
				new ProtectPublication(state),
				new ProtectPublications(state),
				new UnprotectPublication(state),
				new UnprotectPublications(state),
				});
		menu.open();
	}	
}
